import os
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))


def copy_model_params(target_model, source_model):
    for name, param in source_model.state_dict().items():
        target_model.state_dict()[name].copy_(param.clone())